﻿using System.Runtime.Serialization;

namespace LearningProject.DataContract
{
        [DataContract(Namespace = "zhangweiwen867@163.com")]
        public class Employee
        {
                [DataMember]
                public string Id { get; set; }

                [DataMember]
                public string Name { get; set; }

                [DataMember]
                public string Department { get; set; }

                [DataMember]
                public string Grade { get; set; }

                public override string ToString()
                {
                        return string.Format("ID: {0,-5} 姓名: {1,-5} 级别: {2,-4} 部门: {3}", Id, Name, Grade, Department);
                }
        }
}
